package com.tianxin.workbao.workBao.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户类
 * Created by hacker on 2017/6/17.
 */
@Entity
public class User extends BaseBean implements Serializable {
    private static final long serialVersionUID = -1836728906786124715L;
    @Id(autoincrement = true)
    private Long id;
    @Property
    private String username;
    @Property
    private String name;
    @Property
    private String password;
    @Property
    private String salt;
    @Property
    private String sex;
    @Property
    private Date birthday;
    @Property
    private String email;
    @Property
    private String qq;
    @Property
    private String weixin;
    @Property
    private String headphoto;
    @Property
    private String duty;
    @Property
    private String officetel;
    @Property
    private String mobiletel;
    @Property
    private Date createtime;
    @Property
    private Date updatetime;
    @Property
    private Date lastlogintime;
    @Property
    private Integer orgid;
    @Property
    private String orgname;
    @Property
    private Integer porgid;
    @Property
    private String porgname;
    @Property
    private Integer level;
    @Property
    private Integer loginnum;
    @Property
    private String apptoken;
    @Property
    private Date applogintime;
    @Property
    private Integer apploginnum;
    @Property
    private Byte status;
    @Property
    private Byte isis;


    @Generated(hash = 1031926750)
    public User(Long id, String username, String name, String password,
                String salt, String sex, Date birthday, String email, String qq,
                String weixin, String headphoto, String duty, String officetel,
                String mobiletel, Date createtime, Date updatetime, Date lastlogintime,
                Integer orgid, String orgname, Integer porgid, String porgname,
                Integer level, Integer loginnum, String apptoken, Date applogintime,
                Integer apploginnum, Byte status, Byte isis) {
        this.id = id;
        this.username = username;
        this.name = name;
        this.password = password;
        this.salt = salt;
        this.sex = sex;
        this.birthday = birthday;
        this.email = email;
        this.qq = qq;
        this.weixin = weixin;
        this.headphoto = headphoto;
        this.duty = duty;
        this.officetel = officetel;
        this.mobiletel = mobiletel;
        this.createtime = createtime;
        this.updatetime = updatetime;
        this.lastlogintime = lastlogintime;
        this.orgid = orgid;
        this.orgname = orgname;
        this.porgid = porgid;
        this.porgname = porgname;
        this.level = level;
        this.loginnum = loginnum;
        this.apptoken = apptoken;
        this.applogintime = applogintime;
        this.apploginnum = apploginnum;
        this.status = status;
        this.isis = isis;
    }

    @Generated(hash = 586692638)
    public User() {
    }


    public Long getId() {
        return id;
    }

    public User setId(Long id) {
        this.id = id;
        return this;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt == null ? null : salt.trim();
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex == null ? null : sex.trim();
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq == null ? null : qq.trim();
    }

    public String getWeixin() {
        return weixin;
    }

    public void setWeixin(String weixin) {
        this.weixin = weixin == null ? null : weixin.trim();
    }

    public String getHeadphoto() {
        return headphoto;
    }

    public void setHeadphoto(String headphoto) {
        this.headphoto = headphoto == null ? null : headphoto.trim();
    }

    public String getDuty() {
        return duty;
    }

    public void setDuty(String duty) {
        this.duty = duty == null ? null : duty.trim();
    }

    public String getOfficetel() {
        return officetel;
    }

    public void setOfficetel(String officetel) {
        this.officetel = officetel == null ? null : officetel.trim();
    }

    public String getMobiletel() {
        return mobiletel;
    }

    public void setMobiletel(String mobiletel) {
        this.mobiletel = mobiletel == null ? null : mobiletel.trim();
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public Date getLastlogintime() {
        return lastlogintime;
    }

    public void setLastlogintime(Date lastlogintime) {
        this.lastlogintime = lastlogintime;
    }

    public Integer getOrgid() {
        return orgid;
    }

    public void setOrgid(Integer orgid) {
        this.orgid = orgid;
    }

    public String getOrgname() {
        return orgname;
    }

    public void setOrgname(String orgname) {
        this.orgname = orgname;
    }

    public Integer getPorgid() {
        return porgid;
    }

    public void setPorgid(Integer porgid) {
        this.porgid = porgid;
    }

    public String getPorgname() {
        return porgname;
    }

    public void setPorgname(String porgname) {
        this.porgname = porgname;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }


    public Integer getLoginnum() {
        return loginnum;
    }

    public void setLoginnum(Integer loginnum) {
        this.loginnum = loginnum;
    }

    public String getApptoken() {
        return apptoken;
    }

    public void setApptoken(String apptoken) {
        this.apptoken = apptoken;
    }

    public Date getApplogintime() {
        return applogintime;
    }

    public void setApplogintime(Date applogintime) {
        this.applogintime = applogintime;
    }

    public Integer getApploginnum() {
        return apploginnum;
    }

    public void setApploginnum(Integer apploginnum) {
        this.apploginnum = apploginnum;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    public Byte getIsis() {
        return isis;
    }

    public void setIsis(Byte isis) {
        this.isis = isis;
    }


}
